﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_Basics.TMS_Oilcost
{
    public class TMS_OilAppService : ApplicationService
    {
        private readonly ITMS_Oilcosts _ITMS_Oilcosts;
        public TMS_OilAppService(ITMS_Oilcosts ITMS_Oilcosts)
        {
            _ITMS_Oilcosts = ITMS_Oilcosts;
        }

        public async Task<PageResponse<TMS_OilcostDto>> GetOil(string Oilnumber, string Oilpeop, int pageindex = 1, int pagesize = 5)
        {
            return await _ITMS_Oilcosts.GetOil(Oilnumber, Oilpeop, pageindex, pagesize);    
        }

        public async Task<int> OilAdds(TMS_OilcostDto info)
        { 
            return await _ITMS_Oilcosts.OilAdds(info);
        }

        public async Task<int> DeletOil(string Id)
        { 
            return await _ITMS_Oilcosts.DeletOil(Id);
        }
    }
}
